CREATE TABLE [dbo].[TCPLAN_DOXC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[TI_PLAN] [dbo].[TD_VC_001] NOT NULL,
[NU_PLAN] [dbo].[TD_VC_008] NOT NULL,
[FE_PLAN] [dbo].[TD_DT_001] NOT NULL,
[CO_ESTA_NUEV] [dbo].[TD_VC_003] NULL,
[CO_BANC] [dbo].[TD_VC_003] NULL,
[NU_PLAN_BANC] [dbo].[TD_VC_020] NULL,
[CO_MONE] [dbo].[TD_VC_003] NULL,
[CO_AGEN] [dbo].[TD_VC_003] NULL,
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[CO_COBR] [dbo].[TD_VC_020] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCPLAN_DO__CO_US__3A179ED3] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCPLAN_DO__FE_US__3B0BC30C] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCPLAN_DO__CO_US__3BFFE745] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCPLAN_DO__FE_US__3CF40B7E] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCPLAN_DOXC] ADD CONSTRAINT [PK__TCPLAN_D__9696445A34749F6D] PRIMARY KEY CLUSTERED  ([CO_EMPR], [TI_PLAN], [NU_PLAN]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCPLAN_DOXC] ADD CONSTRAINT [FK__TCPLAN_DO__CO_EM__13BDB718] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
